package com.xw.base.client;

import com.dtflys.forest.annotation.JSONBody;
import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.annotation.Var;

import java.util.Map;

/**
*
* @author： XW -> ~
* @create： 2023/11/7 18:01
*/
public interface WechatClient {

    /**
     * 微信通知
     * @param key 加密信息，包含查询快递的订单号
     */
    @Post(
            url = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key={key}",
            headers = {
                    "Accept-Charset: utf-8",
                    "Content-Type: application/json"
            },
            dataType = "json")
    void sendWechatMsg(@Var("key") String key, @JSONBody Map<String, Object> body);

}
